'''
Created on 2011-4-20

@author: Narcissu
'''
import socket
name = socket.gethostname()
print name
ip = socket.gethostbyname(name)
print socket.gethostbyaddr(name)
print ip